import request from '@/utils/request'

export function getAllRoads() {
  return request({
    url: '/api/getAllRoads',
    method: 'get'
  })
}

export function findRoadInfo(id) {
  return request({
    url: "/api/road/findRoadInfo",
    method: "get",
    params: {id}
  });
}

/**
 * 分页
 * @param {*} data 
 * @returns 
 */
export function getRoads(data) {
    return request({
      url: '/api/getRoads',
      method: 'get',
      params:data
    })
}